package part19_状态模式_抽奖;

/**奖品发放完毕状态
 * @ClassName: DispenseOutState
 * @Author: AllenSun
 * @Date: 2020/3/9 21:20
 */
public class DispenseOutState extends State {
    //初始化时传入活动引用
    RaffleActivity activity;

    public DispenseOutState(RaffleActivity activity) {
        this.activity = activity;
    }

    @Override
    public void deductMoney() {
        System.out.println("奖品发送完了，请下次再参加");
    }

    @Override
    public boolean raffle() {
        System.out.println("奖品发送完了，请下次再参加");
        return false;
    }

    @Override
    public void despendePrize() {
        System.out.println("奖品发送完了，请下次再参加");
    }
}
